package com.ocom.srvpamh.feignclient;

import com.ocom.common.constant.AccessServiceUrl;
import com.ocom.common.resp.Result;
import com.ocom.common.response.wx.MachInfoPageOnShowResponse;
import com.ocom.common.vo.accessdevice.RegionAreaInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import com.ocom.common.response.wx.MachInfoPageOnShowResponse;

@FeignClient(value = "access")
public interface AccessClientService {


    /**
     * 获取区域片区信息
     * */
    @PostMapping(AccessServiceUrl.URL_getAreaInfoByMachNo)
    Result<RegionAreaInfo> getAreaInfoByMachNo(@RequestParam("companyId") Long companyId, @RequestParam("machNo") String machNo);


    @PostMapping(AccessServiceUrl.URL_getMachineInfoByMachNo)
    public Result<MachInfoPageOnShowResponse> getMachineInfoById(@RequestParam("companyId")Long companyId, @RequestParam("machNo")String machNo);

}
